<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组map方法</title>
		<script>
			let arr=[1,2,3]
			let newArr=arr.map(item=>item*2)
			console.log('原数组：'+arr)
			console.log('新数组：'+newArr)
			let arrScore=[90,34,76]
			let score=arrScore.map(item=>item>=60?item>=90?'优秀':'及格':'不及格')
			console.log('成绩数组：'+arrScore)
			console.log('转换数组：'+score)
		</script>
	</head>
	<body>
	</body>
</html>
